import 'package:flutter/material.dart';

class DeviceInfoWidget extends StatelessWidget {
  final String title;
  final String value;
  final double maxWidth;

  DeviceInfoWidget(this.title, this.value, {this.maxWidth = 200});

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Container(
        // height: 40,
        constraints: BoxConstraints(maxWidth: maxWidth),
        child: Builder(builder: (context) {
          return InkWell(
              child: InputDecorator(
            decoration: InputDecoration(
              labelText: title,
              contentPadding: EdgeInsets.zero,
              // border: OutlineInputBorder(
              //   borderRadius: BorderRadius.circular(10.0),
              // ),
            ),
            child: Text(value),
          ));
        }),
      ),
    );
  }
}
